const { connection } = require('../../../model/database')
module.exports = (req, res) => {
    var sql = 'select * from webset'
    // 发送
    connection.query(sql, (error, reslut) => {
        if (error) {
            res.status(400).send('错误')
            return
        }
        res.send(reslut[0])
    })
}